// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   AccountProfileVO.java

package com.boci.clientapp.profile.vo;

import com.boci.clientapp.main.ClientAppLoader;
import com.boci.common.util.MessagesConfigurator;
import com.boci.common.vo.ResponseVO;
import java.util.Locale;

public class AccountProfileVO extends ResponseVO
{

    public String getEmpr_type()
    {
        return empr_type;
    }

    public void setEmpr_type(String empr_type)
    {
        this.empr_type = empr_type;
    }

    public AccountProfileVO(String pReqType, String pRtnCode)
    {
        super(pReqType, pRtnCode);
    }

    public String getBankAccountCurrency()
    {
        return bankAccountCurrency;
    }

    public void setBankAccountCurrency(String bankAccountCurrency)
    {
        this.bankAccountCurrency = bankAccountCurrency;
    }

    public String getBankAccountName()
    {
        return bankAccountName;
    }

    public String getDisplayBankAccNo(Locale pLocale)
    {
        String strBankAccNo = bankAccountNum;
        MessagesConfigurator msgConf = ClientAppLoader.getMessagesConfigurator();
        if(strBankAccNo != null || !strBankAccNo.trim().equals(""))
        {
            if(strBankAccNo.length() <= 5)
            {
                strBankAccNo = "";
                for(int i = 0; i < strBankAccNo.length(); i++)
                    strBankAccNo = (new StringBuilder()).append(strBankAccNo).append("*").toString();

            } else
            {
                strBankAccNo = (new StringBuilder()).append("*****").append(strBankAccNo.substring(5, strBankAccNo.length())).toString();
            }
        } else
        {
            strBankAccNo = "";
        }
        if(bankAccountCurrency != null && bankAccountCurrency.length() != 0)
            strBankAccNo = (new StringBuilder()).append(strBankAccNo).append(" (").append(msgConf.getUIMessages(bankAccountCurrency, pLocale)).append(")").toString();
        return strBankAccNo;
    }

    public void setBankAccountName(String bankAccountName)
    {
        this.bankAccountName = bankAccountName;
    }

    public String getBankAccountNotice()
    {
        return bankAccountNotice;
    }

    public void setBankAccountNotice(String bankAccountNotice)
    {
        this.bankAccountNotice = bankAccountNotice;
    }

    public String getBankAccountNum()
    {
        return bankAccountNum;
    }

    public void setBankAccountNum(String bankAccountNum)
    {
        this.bankAccountNum = bankAccountNum;
    }

    public String getDaytimePhoneAreaCode()
    {
        return daytimePhoneAreaCode;
    }

    public void setDaytimePhoneAreaCode(String daytimePhoneAreaCode)
    {
        this.daytimePhoneAreaCode = daytimePhoneAreaCode;
    }

    public String getDaytimePhoneCountryCode()
    {
        return daytimePhoneCountryCode;
    }

    public void setDaytimePhoneCountryCode(String daytimePhoneCountryCode)
    {
        this.daytimePhoneCountryCode = daytimePhoneCountryCode;
    }

    public String getDaytimePhoneTelNo()
    {
        return daytimePhoneTelNo;
    }

    private String formatPhoneNo(String pCountry, String pArea, String pTelNo)
    {
        String strPhone = "";
        if(pCountry != null && pCountry.length() != 0)
            strPhone = (new StringBuilder()).append("(").append(pCountry).append(") ").toString();
        if(pArea != null && pArea.length() != 0)
            strPhone = (new StringBuilder()).append(strPhone).append(pArea).append("-").toString();
        strPhone = (new StringBuilder()).append(strPhone).append(pTelNo).toString();
        return strPhone;
    }

    public String getDaytimePhone()
    {
        return formatPhoneNo(daytimePhoneCountryCode, daytimePhoneAreaCode, daytimePhoneTelNo);
    }

    public String getEveningPhone()
    {
        return formatPhoneNo(eveningPhoneCountryCode, eveningPhoneAreaCode, eveningPhoneTelNo);
    }

    public String getMobilePhone()
    {
        return formatPhoneNo(mobilePhoneCountryCode, mobilePhoneAreaCode, mobilePhoneTelNo);
    }

    public String getFaxNo()
    {
        return formatPhoneNo(faxCountryCode, faxAreaCode, faxTelNo);
    }

    public void setDaytimePhoneTelNo(String daytimePhoneTelNo)
    {
        this.daytimePhoneTelNo = daytimePhoneTelNo;
    }

    public String getDefaultAccountNo()
    {
        return defaultAccountNo;
    }

    public void setDefaultAccountNo(String defaultAccountNo)
    {
        this.defaultAccountNo = defaultAccountNo;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEnglishName()
    {
        return englishName;
    }

    public void setEnglishName(String englishName)
    {
        this.englishName = englishName;
    }

    public String getEveningPhoneAreaCode()
    {
        return eveningPhoneAreaCode;
    }

    public void setEveningPhoneAreaCode(String eveningPhoneAreaCode)
    {
        this.eveningPhoneAreaCode = eveningPhoneAreaCode;
    }

    public String getEveningPhoneCountryCode()
    {
        return eveningPhoneCountryCode;
    }

    public void setEveningPhoneCountryCode(String eveningPhoneCountryCode)
    {
        this.eveningPhoneCountryCode = eveningPhoneCountryCode;
    }

    public String getEveningPhoneTelNo()
    {
        return eveningPhoneTelNo;
    }

    public void setEveningPhoneTelNo(String eveningPhoneTelNo)
    {
        this.eveningPhoneTelNo = eveningPhoneTelNo;
    }

    public String getFaxAreaCode()
    {
        return faxAreaCode;
    }

    public void setFaxAreaCode(String faxAreaCode)
    {
        this.faxAreaCode = faxAreaCode;
    }

    public String getFaxCountryCode()
    {
        return faxCountryCode;
    }

    public void setFaxCountryCode(String faxCountryCode)
    {
        this.faxCountryCode = faxCountryCode;
    }

    public String getFaxTelNo()
    {
        return faxTelNo;
    }

    public void setFaxTelNo(String faxTelNo)
    {
        this.faxTelNo = faxTelNo;
    }

    public String getHomeAddress1()
    {
        return homeAddress1;
    }

    public void setHomeAddress1(String homeAddress1)
    {
        this.homeAddress1 = homeAddress1;
    }

    public String getHomeAddress2()
    {
        return homeAddress2;
    }

    public void setHomeAddress2(String homeAddress2)
    {
        this.homeAddress2 = homeAddress2;
    }

    public String getHomeAddress3()
    {
        return homeAddress3;
    }

    public void setHomeAddress3(String homeAddress3)
    {
        this.homeAddress3 = homeAddress3;
    }

    public String getPreferLang()
    {
        return preferLang;
    }

    public void setPreferLang(String lang)
    {
        preferLang = lang;
    }

    public String getMobilePhoneAreaCode()
    {
        return mobilePhoneAreaCode;
    }

    public void setMobilePhoneAreaCode(String mobilePhoneAreaCode)
    {
        this.mobilePhoneAreaCode = mobilePhoneAreaCode;
    }

    public String getMobilePhoneCountryCode()
    {
        return mobilePhoneCountryCode;
    }

    public void setMobilePhoneCountryCode(String mobilePhoneCountryCode)
    {
        this.mobilePhoneCountryCode = mobilePhoneCountryCode;
    }

    public String getMobilePhoneTelNo()
    {
        return mobilePhoneTelNo;
    }

    public void setMobilePhoneTelNo(String mobilePhoneTelNo)
    {
        this.mobilePhoneTelNo = mobilePhoneTelNo;
    }

    public String getCorrespondingAddr()
    {
        return correspondingAddr;
    }

    public void setCorrespondingAddr(String correspondingAddr)
    {
        this.correspondingAddr = correspondingAddr;
    }

    public String getOfficeAddress1()
    {
        return officeAddress1;
    }

    public void setOfficeAddress1(String officeAddress1)
    {
        this.officeAddress1 = officeAddress1;
    }

    public String getOfficeAddress2()
    {
        return officeAddress2;
    }

    public void setOfficeAddress2(String officeAddress2)
    {
        this.officeAddress2 = officeAddress2;
    }

    public String getOfficeAddress3()
    {
        return officeAddress3;
    }

    public void setOfficeAddress3(String officeAddress3)
    {
        this.officeAddress3 = officeAddress3;
    }

    public String getPreferStreamProd()
    {
        return preferStreamProd;
    }

    public void setPreferStreamProd(String preferStreamProd)
    {
        this.preferStreamProd = preferStreamProd;
    }

    private String englishName;
    private String bankAccountNum;
    private String bankAccountName;
    private String bankAccountCurrency;
    private String bankAccountNotice;
    private String homeAddress1;
    private String homeAddress2;
    private String homeAddress3;
    private String officeAddress1;
    private String officeAddress2;
    private String officeAddress3;
    private String correspondingAddr;
    private String daytimePhoneCountryCode;
    private String daytimePhoneAreaCode;
    private String daytimePhoneTelNo;
    private String eveningPhoneCountryCode;
    private String eveningPhoneAreaCode;
    private String eveningPhoneTelNo;
    private String mobilePhoneCountryCode;
    private String mobilePhoneAreaCode;
    private String mobilePhoneTelNo;
    private String faxCountryCode;
    private String faxAreaCode;
    private String faxTelNo;
    private String email;
    private String preferLang;
    private String preferStreamProd;
    private String defaultAccountNo;
    private String empr_type;
}
